import request from "../../http";

const couponApi = {
  async getCouponData(query) {
    return request({
      url: "/pc/coupon/list",
      method: "get",
      params:query
    });
  },
  async getCoupon(params){
    return request({
      url:'/api/coupon/v2/collect',
      method: "post",
      data:params
    })
  }
};

export default couponApi;
